import storeservice from '../services/store.js';
const ext = {
  //获取2.0红包活动状态
  getcheap_goods: function (that) {
    let cheap_status = 0,
      params = {};
    storeservice.cheap_status(params, function (res) {
      if (res && res.code == 200) {
        cheap_status = 1;
      }else{
        cheap_status = 0;
      }
    }, res=>{
      that.setData({
        cheap_status
      });
    });
  },
}
module.exports = ext;